package dao;

import java.util.List;

import vo.Sentence;

public interface SentenceDAO extends GenericDao<Sentence, Long> {

	public List<Sentence> findByPaperId(long paperId);

	public List<Sentence> findAll(int start, int pageSize);

	// pagination
	public List<Sentence> findAll();

	public long findTotalCount();

	// 关键字分页
	public List<Sentence> findByKeyword(int start, int pageSize, String keyword);

	public long findTotalCountByKeyword(String keyword);

	public List<Sentence> findByPaperId(int start, int pageSize, long paperId);

	public long findTotalCountByPaperId(long paperId);

	// 按照类型分页
	public List<Sentence> findByType(int start, int pageSize, long typeId);

	public long findTotalCountByType(long typeId);

	// 按照类型,关键字分页
	public List<Sentence> findByTypeKeyword(int start, int pageSize, long typeId, String keyword);

	public long findTotalCountByTypeKeyword(long typeId, String keyword);
}
